package com.zhousb.file_retrieval_server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itextpdf.text.DocumentException;
import com.zhousb.file_retrieval_server.domain.bo.UploadBo;
import com.zhousb.file_retrieval_server.domain.so.ContractPageSo;
import com.zhousb.file_retrieval_server.domain.vo.ContractPageVo;
import com.zhousb.file_retrieval_server.domain.dto.UploadFileDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author ZhouShenBin
 * @date 2024/9/24 16:21
 * @description
 */

public interface ContractService {

    IPage<ContractPageVo> page(Page<?> page, @Param("so")ContractPageSo so);
    boolean upload(UploadBo bo) throws DocumentException, FileNotFoundException;
    UploadFileDto uploadFile(MultipartFile files) throws IOException;
}
